//
//  DLGlobalDefine.h
//  dielianw
//
//  Created by 刘威 on 16/8/13.
//  Copyright © 2016年 apple. All rights reserved.
//

#ifndef DLGlobalDefine_h
#define DLGlobalDefine_h

//手机型号
#define kDeviceModel [UIDevice currentDevice].model
#define APP_VERSION                         [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]

#define TabBarHeight                        49.0f
#define NaviBarHeight                       44.0f
#define ViewCtrlTopBarHeight                (NaviBarHeight + StatusBarHeight)

#define RGB(r, g, b)                        [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:1.f]
#define RGBA(r, g, b, a)                    [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]

#define StatusBarHeight                     [UIApplication sharedApplication].statusBarFrame.size.height

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
#define IOSVersion  [[[UIDevice currentDevice] systemVersion] floatValue]

#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self

#ifdef DEBUG
#define ZJLog(...) NSLog(__VA_ARGS__)

#else
#define ZJLog(...)

#endif
#define ZJFunc NSLog(@"%s",__func__)
#define MLColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0];

#define MLBgCocor MLColor(223, 223, 223)





#define VERSION_USERDEFAULT_KEY @"version_key"

//#define SHOW_SETTING_HEADER_IMAGE_GUIDE_KEY @"show_setting_header_image_key"
//#define SHOW_SETTING_CERTIFICATE_GUIDE_KEY @"show_setting_certificate_key"
//#define SHOW_CHECT_CERTIFICATE_GUIDE_KEY @"show_chect_certificate_key"
//#define SHOW_SETTING_RECHARGE_GUIDE_KEY @"show_setting_recharge_key"
//#define SHOW_CHECT_RECHARGE_GUIDE_KEY @"show_chect_recharge_key"




















#endif /* DLGlobalDefine_h */
